package com.weds.edpf.core.service;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.entity.NGateRealEntity;
import com.weds.edpf.core.mapper.NGateRealMapper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author sxm
 * @Description GateReal管理
 * @Date 2020-06-11
 */
@Service
public class GateRealService extends BaseService {

    @Autowired
    private NGateRealMapper NGateRealMapper;

    private Logger log = LogManager.getLogger();

    public int deleteByPrimaryKey(Integer xh) {
        return NGateRealMapper.deleteByPrimaryKey(xh);
    }

    public int insert(NGateRealEntity record) {
        return NGateRealMapper.insert(record);
    }

    public int insertSelective(NGateRealEntity record) {
        return NGateRealMapper.insertSelective(record);
    }

    public NGateRealEntity selectByPrimaryKey(Integer xh) {
        return NGateRealMapper.selectByPrimaryKey(xh);
    }

    public int updateByPrimaryKeySelective(NGateRealEntity record) {
        return NGateRealMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NGateRealEntity record) {
        return NGateRealMapper.updateByPrimaryKey(record);
    }

    public List<NGateRealEntity> selectListByEntity(NGateRealEntity record) {
        return NGateRealMapper.selectListByEntity(record);
    }


    public int deleteBatchByKeys(List<NGateRealEntity> list) {
        return NGateRealMapper.deleteBatchByKeys(list);
    }

    public int insertBatch(List<NGateRealEntity> list) {
        return NGateRealMapper.insertBatch(list);
    }

    public int countDepDoor(Integer depSerial) {
        return NGateRealMapper.countDepDoor(depSerial);
    }
}
